package com.siyao.redvip.volley;


import com.android.volley.Response.Listener;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.siyao.redvip.utils.Track;

/**
 *  继承volley的VolleySuccessListener
 * @author lenovo
 *
 */
public  class VolleySuccessListener implements Listener<String>{
	protected NetBean netBean = new NetBean();
	 
	@Override
	public void onResponse(String response) {
		Track.i(response);
		Gson gson = new Gson();
		netBean= gson.fromJson(response, new TypeToken<NetBean>() {}.getType());
	}
}
